package com.psjj.privilege.po;

import java.util.List;

/**
 * 角色表
 */
public class Role {
    /** 角色主键 */
    private Integer rid ;
    /** 角色名称 */
    private String rname ;
    /** 角色描述 */
    private String description ;
    //代表当前角色是否被选中
    private boolean check = false;
    //关联权限信息 一个角色可以拥有多个权限
    private List<Privilege> privileges;

    public List<Privilege> getPrivileges() {
        return privileges;
    }

    public void setPrivileges(List<Privilege> privileges) {
        this.privileges = privileges;
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }



    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
